<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
             targetNamespace="Examples">

    <process id="intermediateTimerEventExample" name="Timer intermediate event example" isExecutable="true">

        <startEvent id="theStart"/>
        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="timer"/>

        <intermediateCatchEvent id="timer">
            <timerEventDefinition>
                <timeDuration>${duration}</timeDuration>
            </timerEventDefinition>
        </intermediateCatchEvent>

        <sequenceFlow id="flow2" sourceRef="timer" targetRef="theEnd"/>

        <endEvent id="theEnd"/>

    </process>
    <bpmndi:BPMNDiagram id="diagram">
       <bpmndi:BPMNPlane bpmnElement="intermediateTimerEventExample" id="intermediateTimerEventExample_di">
          <bpmndi:BPMNShape bpmnElement="theStart" id="theStart_di">
             <omgdc:Bounds height="30.0" width="30.0" x="114.0" y="185.0"/>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="timer" id="timer_di">
             <omgdc:Bounds height="30.0" width="30.0" x="195.0" y="185.0"/>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="theEnd" id="theEnd_di">
             <omgdc:Bounds height="28.0" width="28.0" x="270.0" y="186.0"/>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNEdge bpmnElement="flow1" id="flow1_di">
             <omgdi:waypoint x="144.0" y="200.0"/>
             <omgdi:waypoint x="195.0" y="200.0"/>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="flow2" id="flow2_di">
             <omgdi:waypoint x="225.0" y="200.0"/>
             <omgdi:waypoint x="270.0" y="200.0"/>
          </bpmndi:BPMNEdge>
       </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>

</definitions>
